MacSwitch handles and manipulates the MAC address table.
More...
MacSwitch handles and manipulates the MAC address table.
◆ addStaticMac()
| bool MacSwitch::addStaticMac |
( |
mac |
, |
|
|
int |
, |
|
|
string |
|
|
) |
| |
Adds a static MAC address to the specified port.
- Parameters
-
| macAddress,the | static MAC address. |
| vlanNumber,the | VLAN number. |
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
- Returns
- bool, true if successful, otherwise false.
◆ closeTableEvent()
| void MacSwitch::closeTableEvent |
( |
| ) |
|
Event triggered when the table is closed/deleted.
IPC event.
◆ getGlobalMacAt()
Returns the static MAC address at the specified index.
- Parameters
-
| index,the | index of the static MAC address of interest. |
- Returns
- StaticMac, the StaticMac object at the specified index.
◆ getStaticMacCount()
| int MacSwitch::getStaticMacCount |
( |
| ) |
|
Returns the number of static MAC addresses configured.
- Returns
- int, the number of static MAC addresses configured.
◆ isEntryExisted()
| bool MacSwitch::isEntryExisted |
( |
mac |
, |
|
|
int |
, |
|
|
string |
|
|
) |
| |
Returns true if the specified entry exists in the MAC address table, otherwise false.
- Parameters
-
| macAddress,the | static MAC address of interest. |
| vlanNumber,the | VLAN number of interest. |
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
- Returns
- bool, true if the specified entry exists in the MAC address table, otherwise false.
◆ portExistedInStatic()
| bool MacSwitch::portExistedInStatic |
( |
string |
| ) |
|
- Parameters
-
| Returns | true if the specified port has a static MAC address, otherwise false. |
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
- Returns
- bool, true if the specified port has a static MAC address, otherwise false.
◆ removeStaticMac()
| bool MacSwitch::removeStaticMac |
( |
mac |
, |
|
|
int |
, |
|
|
string |
|
|
) |
| |
Removes the static MAC address from the specified port.
- Parameters
-
| macAddress,the | static MAC address of interest. |
| vlanNumber,the | VLAN number of interest. |
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
- Returns
- bool, true if successful, otherwise false.
◆ updateTableEvent()
| void MacSwitch::updateTableEvent |
( |
| ) |
|
Event triggered when the table is updated.
IPC event.
The documentation for this class was generated from the following file: